home *** CD-ROM | disk | FTP | other *** search
- /* Menu with elements as items.
- It shows the "Menu wits vector buttons (Elements)".
- */
-
- #ifndef __ELEMENT_MENU_H_
- #define __ELEMENT_MENU_H_
-
- #include "choicebx.h"
-
- class ElementMenu : public ChoiceBox
- {
- protected:
- int element_pattern;
- public:
- ElementMenu(rect coordinates, char* fName = "", char* h = "",
- char* HOT = NULL, int POS = 1, int START = 1,
- loc ITEMSIZE = loc(2, 1), int* ITEMLIST = NULL,
- loc ITEMDISTANCE = loc(1, 0),
- rect STATUSPOS = rect(0, 0, 79, 25), int STATUSTYPE = 0,
- char** STATUSSTRINGS = NULL, int* STATUSLIST = NULL,
- int res = FIXED, int s = 0, BORDERS b_type = SHOW_BORDER,
- BORDERS hdr_b_type = SHOW_BORDER, int pat = 0,
- int hdr_pat = 0, int elem_pat = 0)
- : ChoiceBox(coordinates, fName, h, HOT, POS, START,
- ITEMSIZE, /* ITEMSTRINGS */ NULL, ITEMLIST,
- ITEMDISTANCE, STATUSPOS, STATUSTYPE, STATUSSTRINGS,
- STATUSLIST, res, s, b_type, hdr_b_type, pat, hdr_pat)
- {
- element_pattern = elem_pat;
- calcConsts();
- }
-
- virtual void calcItemsNumber();
- virtual void showItem();
- };
-
- #endif __ELEMENT_MENU_H_